import { BaseLayer } from "./Base";
import { TileLayerOpts } from './Tile';

export class Layer extends BaseLayer{
    constructor(opts: {[key: string]: any}){
        super(opts);

        this.addEventListener('change:source', this.handleSourcePropertyChange_.bind(this))
        const source = opts.source;
        if(source) {
            this.set('source', source)
        }
    }

    public handleSourcePropertyChange_(){
        console.log('change:source');
    }

}